home *** CD-ROM | disk | FTP | other *** search
- Path: news.ccs.queensu.ca!news
- From: dmurdoch@mast.queensu.ca (Duncan Murdoch)
- Newsgroups: comp.lang.c++,comp.lang.pascal.delphi.misc
- Subject: Re: C++ with Zapp vs. Delphi
- Date: Fri, 19 Jan 1996 18:48:20 GMT
- Organization: Queen's University, Kingston
- Message-ID: <30ffe557.16481026@130.15.126.54>
- References: <4coar6$d4n@sun4.bham.ac.uk> <4coip7$69s@news1.usa.pipeline.com> <DBk8wg2yqjbB083yn@iaccess.za> <4d7pmb$48c8@tigger.cc.uic.edu> <4dk38h$gdr@merlin.delphi.com> <4dksp1$3d6c@tigger.cc.uic.edu> <30fe666e.3349285@130.15.126.54> <4dmjt8$6sv@crc-news.doc.ca> <30ff9519.1799465@130.15.126.54> <4doe07$4u8@crc-news.doc.ca>
- NNTP-Posting-Host: djm.mast.queensu.ca
- X-Newsreader: Forte Agent .99c/16.141
-
- On 19 Jan 1996 15:39:51 GMT, Slobodan Celenkovic <slobodan@cs.unh.edu>
- wrote:
-
- >Sorting algorithm is still in the list class (binary search, quick sort,
- >..). However the item comparison shouldn't go into the list class, but
- >item classes. Why? Because items "know" how to compare themselves to
- >other items.
-
- I hate to repeat myself, but what if I want to put something into two
- different lists? Then the item has to know which list you're calling
- its Compare from. Makes a lot more sense to me to have the Compare as
- a method of the list. Then my AlphabeticalList can compare
- alphabetically, and my NumericalList can compare numerically.
-
- > Once again see Booch.
-
- Sorry, but if the reasoning is so obscure or complicated that you
- can't just summarize it for me, I probably wouldn't find it convincing
- anyways.
-
- Duncan Murdoch
-